<?php

namespace app\api\validate;

use think\Validate;

class Message extends Validate
{
    protected $failException = true;

    protected $rule = [
        'ordernum' => 'require',
        'remarks' => 'require',
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'edit'             => ['username', 'nickname', 'birthday'],
        'changePassword'   => ['password'],
        'retrievePassword' => ['account', 'captcha', 'password'],
    ];

    public function __construct()
    {
        $this->field   = [
        	'ordernum' =>'订单',
        	'remarks' => '备注',
        ];
 
        parent::__construct();
    }
}